package com.camera2.frament;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.camera2.activity.Map;
import com.camera2.activity.R;


public class FramentMap extends Fragment {

    private View view;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//        return LayoutInflater.from(getActivity()).inflate(R.layout.fragment_home, container, false);
        view = inflater.inflate(R.layout.frament_map, null);
        view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
//        view.findViewById(R.id.bt_map).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent=new Intent(getContext(),MainActivity.class);
//                startActivity(intent);
//            }
//        });
        Intent intent=new Intent(getContext(),Map.class);
        startActivity(intent);
        getActivity().finish();
        return view;
    }
}
